//
//  ViewController.swift
//  BiliBiliCore
//
//  Created by andy90s on 02/11/2021.
//  Copyright (c) 2021 andy90s. All rights reserved.
//

import UIKit
import BiliBiliCore
import RxSwift
import RxCocoa

class ViewController: BaseUIViewController {
    lazy var button = UIButton(frame: CGRect(x: 100, y: 100, width: 100, height: 100))
    override func viewDidLoad() {
        super.viewDidLoad()
        button.backgroundColor = UIColor.red
        let mine = BaseNavigationController(rootViewController: BBLoginViewController())
        
        button.rx.tap.subscribe{ () in
            self.present(mine, animated: true) {
                
            }
        } onError: { (error) in
            print(error)
        } onCompleted: {
            
        } onDisposed: {
            
        }.disposed(by: disposeBag)
        view.addSubview(button)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

